import apiClient from './apiClient'

const vipLevelService = {
  // 获取VIP等级列表
  getVipLevelList() {
    return apiClient.get('/vip-levels')
  },

  // 获取VIP等级详情
  getVipLevelById(id) {
    return apiClient.get(`/vip-levels/${id}`)
  },

  // 创建VIP等级
  createVipLevel(data) {
    return apiClient.post('/vip-levels', data)
  },

  // 更新VIP等级
  updateVipLevel(id, data) {
    return apiClient.put(`/vip-levels/${id}`, data)
  },

  // 删除VIP等级
  deleteVipLevel(id) {
    return apiClient.delete(`/vip-levels/${id}`)
  },

  // 切换VIP等级状态
  toggleVipLevelStatus(id) {
    return apiClient.put(`/vip-levels/${id}/toggle-status`)
  }
}

export { vipLevelService }